package com.gzgs.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * User远程调用deign接口
 */
@Component
@FeignClient(value = "service-provider",fallback = UserClientFallback.class)//表明该类是一个feign接口
public interface UserClient {
    @GetMapping("user/{id}")
    String queryById(@PathVariable("id") Integer id);
}
